package com.bocomm.tracevisualization.api.vo.resp;

import com.bocomm.tracevisualization.api.entity.TraceTargetData;
import lombok.Data;

@Data
public class BrokenLinePoint {

    double delayTime;

    double traceResult;

    boolean success;

    long traceTime;

    public BrokenLinePoint() {

    }
    public BrokenLinePoint(TraceTargetData traceTargetData) {
        this.delayTime = traceTargetData.getDelayTime();
        this.traceResult = traceTargetData.getTraceResult();
        this.success = traceTargetData.isSuccess();
        this.traceTime = traceTargetData.getTraceTime();
    }
}
